<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.chanyachting.emall.util.*"%>
<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
	<div id="right">
		<div class="title"><logic:equal value="" name="newsactivityForm" property="subChannelName">${newsactivityForm.channelName}</logic:equal>${newsactivityForm.subChannelName}</div>
    	<div class="variable">
        	<ul class="news_list1" id="result">
        		<logic:iterate id="news" name="newsactivityForm" property="channelList" indexId="i">
        		<% String hasStyle = "class=\"light\""; if(i % 2 == 1) { hasStyle = "";}  %>
            		<li <%=hasStyle %>>
            		    <bean:define id="subChannelName" name="news" property="key"/>
            		    <% 
            		    	String scName = subChannelName.toString();
            		    	int scId = scName.lastIndexOf("&");
            		    	int scBId = scName.indexOf("&");
            		    	scName = scName.substring(scBId + 1,scId);
            		    %>
            			<a href="readNoticeNewsBySubChannel.do?subChannelId=${news.value.subChannelId}" title="[<%=scName %>]">[<%=scName %>]</a>
            			<a href="readOneNoticeNews.do?id=${news.value.id }" title="${news.value.title}" class="kind">${news.value.title}</a> ${news.value.releaseDate}
            		</li>
           	  	</logic:iterate>
           	  	<logic:empty name="newsactivityForm" property="channelList">本频道无信息！</logic:empty>
            </ul>
        </div>
        <div class="page">${newsactivityForm.linkStr}</div>
	</div>
	<script type="text/javascript">
	<!--
	
	//-->
	</script>